
from functools import reduce
s = reduce(lambda x, y: x+y, ['a', 'b'])

print(s)